package com.library.management.service.notice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.library.management.domain.notice.Notice;

import java.util.List;

public interface NoticeService extends IService<Notice> {
    
    /**
     * 获取启用的公告列表（用于首页显示）
     */
    List<Notice> getActiveNotices(Integer limit);
    
    /**
     * 发布公告
     */
    boolean publishNotice(Notice notice);
    
    /**
     * 删除公告
     */
    boolean deleteNotice(Long id);
} 

